<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .test{
            width: 100px;
            height: 100px;
            border: 1px solid;
            background: pink;
        }
    </style>
</head>
<body>
    <div id="app">
        <button @click="show=!show">switch</button>
        <div class="test" v-show="show">

        </div>
    </div>
</body>
<script src="../../js/vue.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{
            show:true
        }
    })
</script>
</html>